Skip to content

Conversation

@alazar-tekle
Copy link

Testing fetching data from OverPassApi using Bounding boxes and then taking the osm_type and osm_id to get the JSON extension URL from OSM Main API

Eg. https://openstreetmap.org/api/0.6/{osm_type}/{osm_id}.json

But the method is not robust as querying such a huge data takes a very long response time and 99% fails so far (due to server timeout).


public function show($type, $id)
{
$query = '[out:json][timeout:400];way["tourism"="guest_house"](8.827402638625081,38.63822937011719,9.104808725563043,38.91632080078125);out%20body;';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you do not need to query overpass for this - you already have type and ID and can directly pass it to the show function

@amenk amenk closed this Jun 11, 2022
@amenk amenk reopened this Jun 11, 2022
@amenk amenk closed this Jun 11, 2022
@amenk amenk reopened this Jun 11, 2022
@amenk amenk closed this Jun 11, 2022
@amenk amenk reopened this Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants